{extend name='base'/}

{block name='admin_box_l'}
<div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
        <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
        <ul class="layui-nav layui-nav-tree"  lay-filter="test">
            <li class="layui-nav-item layui-nav-itemed"><a href="">用户列表</a></li>
        </ul>
    </div>
</div>
{/block}


{block name='admin_box_r'}
<div class="layui-body" >
    <table class="layui-table" style="margin-top: 0px">
      <colgroup>
        <col width="80">
        <col width="150">
        <col width="150">
        <col width="150">
        <col width="150">
        <col width="150">
        <col width="150">
        <col width="150">
        <col width="150">
      </colgroup>
      <thead>
        <tr>
          <th>ID</th>
          <th>昵称</th>
          <th>email</th>
          <th>性别</th>
          <th>城市</th>
          <th>等级</th>
          <th>金币</th>
          <!-- <th>注册时间</th> -->
          <th>操作</th>
        </tr> 
      </thead>
      <tbody>
        {foreach name='userList' item='vo'}
        <tr>
          <th>{{$vo.id}}</th>
          <th>{{$vo.name}}</th>
          <th>{{$vo.email}}</th>
          <th>{{$vo.sex==0?'男':'女'}}</th>
          <th>{{$vo.city}}</th>
          <th><span class="layui-badge">VIP{{$vo.level}}</span></th>
          <th>{{$vo.gold}}</th>
          <!-- <th>{{$vo.id}}</th> -->
          <th>
          	<a href="{{:url('User/edit',['id'=>$vo.id])}}" class="layui-btn layui-btn-sm layui-btn">编辑</a>
            <a href="{{:url('Index/user/home',['id'=>$vo.id])}}" class="layui-btn layui-btn-sm layui-btn">查看</a>
          </th>
        </tr>
        {/foreach}
      </tbody>
    </table>

</div>

{/block}

